/**
 * Dear programmer:
 * When I wrote this code, only god and I knew how it worked.
 * Now, only god knows it!
 *
 * @author: Pegasus  Date: 2018/11/24 Time: 01:09
 */

import {StyleSheet, Platform, Dimensions} from 'react-native';
import {
    COLOR_WHITE, FONT_COLOR_TITLE, FONT_SIZE_TITLE,
} from "../../../../constant/PHColors"
import {SCREEN_WIDTH,SCREEN_HEIGHT} from "../../../../constant/PHScreen"
import {Header} from "react-navigation";

export const styles = StyleSheet.create({
    container: {
        flexDirection: 'row',   // 水平排布
        paddingLeft: 10,
        paddingRight: 10,
        paddingTop: Platform.OS === 'ios' ? 10 : 0,  // 处理iOS状态栏
        height: Platform.OS === 'ios' ? 70 : 55,   // 处理iOS状态栏
        backgroundColor: '#d9d9d9',
        alignItems: 'center'  // 使元素垂直居中排布, 当flexDirection为column时, 为水平居中
    },
    searchBox:{//搜索框
        height:35,
        flexDirection: 'row',   // 水平排布
        flex:1,
        borderRadius: 5,  // 设置圆角边
        backgroundColor: 'white',
        alignItems: 'center',
        marginLeft: 8,
        marginRight: 8,
        paddingLeft:5,
    },
    inputText:{
        flex:1,
        backgroundColor:'transparent',
        fontSize:15,
        paddingTop: 0,
        paddingBottom: 0,
        paddingLeft: 5,
    },

    boxBody: {
        height: 55,
        backgroundColor: COLOR_WHITE,
        borderColor: '#e8e8e8',
        borderLeftWidth: 1,
        borderTopWidth: 0,
        borderBottomWidth: 1,
        borderRightWidth: 1,
        justifyContent:'center',
        flexDirection: 'row',
        width:SCREEN_WIDTH,
    },

    centerText:{
        fontSize:20,
        color:'#4c4c4c',
        left:10,
    },

    leftBox: {
        flex: 1,
        flexDirection: 'row',
        justifyContent: 'flex-start',
        alignItems: 'center',
        marginRight: 15
    },

    rightBox: {
        flexDirection: 'row',
        justifyContent: 'flex-end',
        alignItems: 'center',
        marginRight: 15
    },

    modalContainer: {
        flex: 1,
        backgroundColor: 'rgba(0, 0, 0, 0.3)',
    },

    modalBox:{
        alignItems:'center',
        backgroundColor:'white',
        marginTop: 120,
        marginLeft: SCREEN_WIDTH/18,
        marginRight: SCREEN_WIDTH/18,
        width: SCREEN_WIDTH*16/18,
        borderRadius:3,
    },

    modalTitle:{
        borderBottomColor:'#4C70FF',
        borderBottomWidth:2,
        height:50,
        width:SCREEN_WIDTH*16/18,
        alignItems:'center',
        justifyContent:'center',
    },

    modalTitleTextNum:{
        fontSize:20,
        color:'#4C70FF',
    },

    modalCenter:{
        alignItems:'center',
        justifyContent:'center',
        flexDirection:'row',
        paddingTop:20,
        paddingBottom:20,
    },

    modalInput:{
        backgroundColor:'transparent',
        fontSize:15,
        paddingTop: 0,
        paddingBottom: 0,
        paddingLeft: 5,
        marginLeft:15,
        marginRight:15,
        width:100,
        height:30,
        borderWidth: 1,
        borderColor:"#aaaaaa"
    },

    modalBottom:{
        alignItems:'center',
        justifyContent:'center',
        flexDirection:'row',
        marginBottom:2,
    },

    modalBottomLeft:{
        marginLeft:2,
        width:((SCREEN_WIDTH*16/18)-6)/2,
        backgroundColor:'#cdcdcd',
        height:45,
        borderRadius: 2,
        alignItems:'center',
        justifyContent: 'center',
    },

    modalBottomLeftText: {
        fontSize: 20,
        color: '#6e6e6e',
        marginBottom: 1,
        textAlign:'center',
    },

    modalBottomRight:{
        marginLeft:2,
        width:((SCREEN_WIDTH*16/18)-6)/2,
        backgroundColor:'#2f67ff',
        height:45,
        borderRadius: 2,
        alignItems:'center',
        justifyContent: 'center',
    },

    modalBottomRightText: {
        fontSize: 20,
        color: '#ffffff',
        marginBottom: 1,
        textAlign:'center',
    },

    clickButtonStyle:{
        marginTop: 4,
        height: 30,
        backgroundColor: '#e8e8e8',
        borderRadius: 10,
        borderWidth: 1,
        borderColor: '#e8e8e8',
    },

    bodyBottom:{
        height:50,
        width:SCREEN_WIDTH,
        alignItems:'center',
        justifyContent:'flex-start',
        backgroundColor:'#FFFFFF',
        flexDirection:'row'
    },

    bodyBottomBtn:{
        marginLeft:SCREEN_WIDTH*5/100,
        width:SCREEN_WIDTH*90/100,
        backgroundColor:'#2f67ff',
        height:45,
        borderRadius: 5,
        alignItems:'center',
        justifyContent: 'center',
    },

    bodyBottomLeftText: {
        fontSize: 20,
        color: '#ffffff',
        marginBottom: 1,
        textAlign:'center',
    },

    itemHeader: {
        height: 50,
        flexDirection: 'row',
        backgroundColor: '#FFF'
    },

    itemHeaderLeft: {
        flexDirection: 'row',
        justifyContent: 'flex-start',
        alignItems: 'center',
        marginLeft: 15,
        width:75,
    },

    itemHeaderRight: {
        flex: 1,
        flexDirection: 'row',
        justifyContent: 'flex-start',
        alignItems: 'center',
        marginLeft: 15
    },

    itemHeaderText: {
        fontSize: 17,
        color: FONT_COLOR_TITLE
    }
});